package com.lj.frame.role.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


@Data
public class Role {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(name = "角色名称")
    private String name;
    @ApiModelProperty(name = "角色备注")
    private String memo;
    @ApiModelProperty(name = "角色状态")
    private Integer status;
    @ApiModelProperty(name = "创建时间")
    private Date createTime = new Date();

    @ApiModelProperty(name = "选中的菜单")
    @TableField(exist = false)
    private List<Integer> checkedIdList = new ArrayList<>();
}
